import 'package:plugin_platform_interface/plugin_platform_interface.dart';

import '../bean/bean.dart';
import '../method_channel/audio_output_device_new_method_channel.dart';

abstract class AudioOutputDeviceNewPlatform extends PlatformInterface {
  /// Constructs a AudioOutputDeviceNewPlatform.
  AudioOutputDeviceNewPlatform() : super(token: _token);

  static final Object _token = Object();

  static AudioOutputDeviceNewPlatform _instance = MethodChannelAudioOutputDeviceNew();

  /// The default instance of [AudioOutputDeviceNewPlatform] to use.
  ///
  /// Defaults to [MethodChannelAudioOutputDeviceNew].
  static AudioOutputDeviceNewPlatform get instance => _instance;

  /// Platform-specific implementations should set this with their own
  /// platform-specific class that extends [AudioOutputDeviceNewPlatform] when
  /// they register themselves.
  static set instance(AudioOutputDeviceNewPlatform instance) {
    PlatformInterface.verifyToken(instance, _token);
    _instance = instance;
  }

  Future<String?> getPlatformVersion() {
    throw UnimplementedError('platformVersion() has not been implemented.');
  }

  Future<List<BleDevice>> getA2dpConnectedDevices() {
    throw UnimplementedError('getA2dpConnectedDevices() has not been implemented.');
  }

  Stream<bool> get classicDeviceDisconnected {
    throw UnimplementedError(
        'get classicDeviceDisconnected has not been implemented.');
  }
}
